package com.demo.demospringboot.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * 日志配置类
 */
@Configuration
public class LoggingConfig {

  private static final Logger logger = LoggerFactory.getLogger(LoggingConfig.class);

  @PostConstruct
  public void init() {
    logger.info("=== Spring Boot 用户登录系统启动 ===");
    logger.info("日志系统初始化完成");
    logger.info("当前日志级别: INFO");
    logger.info("支持的功能模块:");
    logger.info("  - 用户登录");
    logger.info("  - 用户注册");
    logger.info("  - 接口测试");
    logger.info("=== 系统启动完成 ===");
  }
}